<?php
return array(
    'URL_ROUTER_ON' => true,
    'URL_ROUTE_RULES' => array( //定义路由规则
         '/^news$/' => 'Home/Article/lists',
       '/^news\/c(\d+)$/' => 'Home/Article/lists?cate=:1',
        '/^news\/c(\d+)\/p(\d+)$/' => 'Home/Article/lists?cate=:1&p=:2',
        '/^news\/p(\d+)$/' => 'Home/Article/lists?p=:1',
        '/^news\/(\d+)$/' => 'Home/Article/shows?id=:1',
        '/^news\/(\d+)p(\d+)$/' => 'Home/Article/shows?id=:1&page=:2',

        '/^about\/(\d+)$/' => 'Home/About/detail?id=:1',

        '/^sitemap$/' => 'Home/Api/siteMap?page=:1&total=:2&table=:3',
    ),
    /* 调试配置 */
    'SHOW_PAGE_TRACE' => false,
    'URL_CASE_INSENSITIVE'=>false,	//url不区分大小写
    /* 后台错误页面模板 */
    'TMPL_ACTION_ERROR'     =>  MODULE_PATH.'View/default/Public/error.html', // 默认错误跳转对应的模板文件
    'TMPL_ACTION_SUCCESS'   =>  MODULE_PATH.'View/default/Public/success.html', // 默认成功跳转对应的模板文件
    'TMPL_EXCEPTION_FILE'   =>  MODULE_PATH.'View/default/Public/exception.html',// 异常页面的模板文件

    /* 模板相关配置 */
    'TMPL_PARSE_STRING' => array(
        '__WEB__' =>'/',
        '__IMG__'    => __ROOT__ . '/Public/' . MODULE_NAME.'/images',
        '__CSS__'    => __ROOT__ . '/Public/' . MODULE_NAME.'/css',
        '__JS__'     => __ROOT__ . '/Public/' . MODULE_NAME . '/js'
    ),
    'LOAD_EXT_CONFIG'=>'site',	//自动加载其它配制项
);